package com.zrx.controller;

import com.zrx.domain.ResponseResult;
import com.zrx.service.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 张荣欣
 * @create ：2022/9/16  15:07
 */
@RestController
@RequestMapping("/link")
@Api(tags = "友链")
public class LinkController {

    @Autowired
    private LinkService linkService;

    /**
     * 查询友链  审核通过的
     * @return
     */
    @GetMapping("/getAllLink")
    @ApiOperation(value = "查询友链 审核通过的",notes = "查询友链 审核通过的")
    public ResponseResult getAllLink(){
        return linkService.getAllLink();
    }
}
